package com.zm.rpc.protocol;

public class Header {
    private short magic;
    private byte serialType;
    private byte reqType;
    private long reqId;
    private int dataSize;
    
    public short getMagic() {
        return magic;
    }
    public void setMagic(short magic) {
        this.magic = magic;
    }
    public byte getSerialType() {
        return serialType;
    }
    public void setSerialType(byte serialType) {
        this.serialType = serialType;
    }
    public byte getReqType() {
        return reqType;
    }
    public void setReqType(byte reqType) {
        this.reqType = reqType;
    }
    public long getReqId() {
        return reqId;
    }
    public void setReqId(long reqId) {
        this.reqId = reqId;
    }
    public int getDataSize() {
        return dataSize;
    }
    public void setDataSize(int dataSize) {
        this.dataSize = dataSize;
    }
    @Override
    public String toString() {
        return "Header [magic=" + magic + ", serialType=" + serialType + ", reqType=" + reqType + ", reqId=" + reqId
                + ", dataSize=" + dataSize + "]";
    }

    
}
